/*
 * @Author: yanyufengqing 1624478125@qq.com
 * @Date: 2025-10-02 17:29:33
 * @LastEditors: yanyufengqing 1624478125@qq.com
 * @LastEditTime: 2025-10-03 17:44:57
 * @FilePath: \manage-system\src\main.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from 'vue';

import ElementPlus from 'element-plus';
import { createPinia } from 'pinia';
import 'element-plus/dist/index.css';
import App from './App.vue';
import router from './router';
import * as ElementPlusIconsVue from '@element-plus/icons-vue/global';
import './assets/mai.css';

const app = createApp(App);
const pinia = createPinia();
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  // 跳过install方法，只注册图标组件
  if (key !== 'install') {
    app.component(key, component as any);
  }
}
app.use(ElementPlus);
app.use(pinia);
app.use(router);

app.mount('#app');
